// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (c) 2023 Yevhen Babiichuk (DustDFG)

#include <Abracadabra/GameScene.hpp>

#include <DotSort/Game.hpp>

#include <SFML/System/Clock.hpp>

#include <SFML/Graphics/RenderWindow.hpp>

#include <SFML/Window/Event.hpp>
#include <SFML/Window/Keyboard.hpp>

/* Non game stuff */

#include <cstdint>
#include <vector>
#include <random>

#include <SFML/Graphics.hpp>

#include <DotSort/VectorTubeSetBuilder.hpp>

#include <iostream> // DEBUG

GameScene::GameScene(sf::RenderWindow* window)
	: window(window)
{
	/* Non game stuff */
	this->view = new View::View(this->window->getSize());
}

GameScene::~GameScene()
{
}

void GameScene::load()
{
}

void GameScene::unload()
{
}

void GameScene::update(sf::Time dt)
{
}

void GameScene::processEvent(sf::Event& event)
{
	this->view->processEvent(event);
}

void GameScene::draw(sf::RenderWindow* window) const
{
	window->clear(sf::Color(70, 70, 70));
	window->draw(*this->view);
	window->display();
}
